package com.example.net

import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory

object RetrofitManager {
    fun getRetrofit(OkHttpClient: OkHttpClient):Retrofit{
        val builder= Retrofit.Builder()
        builder.apply {
            baseUrl("http://10.161.9.80:2209")
            client(OkHttpClient)
            addConverterFactory(GsonConverterFactory.create())
        }
        return builder.build()
    }
}